package service

import (
	"time"
	"zzxq/models"
	"zzxq/repository/remindrepository"
	// "zzxq/tools"
)

type Remind struct{}

func (r *Remind)AddRemind(uid int, title string, btime time.Time) bool {	
	repobj := &remindrepository.DbRemind{}
	return repobj.Create(uid, title, btime)
}

func (r *Remind)GetDateList(uid int, btime time.Time) *[]models.Remind {	
	repobj := &remindrepository.DbRemind{}
	return repobj.GetDateList(uid, btime)
}

func (r *Remind)DeleteRemind(uid int, id int) bool {
	repobj := &remindrepository.DbRemind{}

	return repobj.Delete(id, uid)
}